Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get bonferroni corrected values from `oneway`

    I'm trying to get access to the results from running `oneway, tab bonferroni` for export, but it doesn't seem like stata exposes them when I hit `return list`. Does anyone know how to get access to bonferroni corrected ANOVA values in stata? Happy to use another command if it's help.

  • #2
    Do the regress version of oneway. pwcompare with the post option will save the contrasts in e(b_vs) and their variances & covariances in e(V_vs). Here's the example in the manual:
    Code:
    use http://www.stata-press.com/data/r14/yield, clear
    . regress yield i.fertilizer
    . pwcompare fertilizer, mcompare(bonferroni)  post
    . ereturn list
    . matrix list e(b_vs)
    Note that sidak is probably a better method than bonferroni.
    Last edited by Steve Samuels; 30 Jul 2018, 17:25.
    Steve Samuels
    Statistical Consulting
    [email protected]

    Stata 14.2

    Comment


    • #3
      Amazing, thank you so much!

      Comment

      Working...
      X